﻿using System.Collections.Generic;
using Model = DTcms.Model;
using BLL = DTcms.BLL;
using DTcms.Web.Mvc.UI;

namespace System.Web.Mvc.Html
{
    public static class HtmlHelperExpress
    {
        public static BaseController _base = new BaseController();

        /// <summary>
        /// 返回配送列表
        /// </summary>
        /// <param name="top">显示条数</param>
        /// <param name="strwhere">查询条件</param>
        /// <returns>DataTable</returns>
        public static List<Model.express> get_express_list(this HtmlHelper htmlHelper, int top, string strwhere)
        {
            return _base.get_express_list(top, strwhere);
        }

        /// <summary>
        /// 返回配送方式的标题
        /// </summary>
        /// <param name="payment_id">ID</param>
        /// <returns>String</returns>
        public static string get_express_title(this HtmlHelper htmlHelper, int express_id)
        {
            return _base.get_express_title(express_id);
        }
    }
}
